package cn.wolfcode.wolf2w.query;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 做 游记的参数映射
 */
@Getter
public class TravelCondition {
    // 出行的天数
    public static final Map<Integer,TravelCondition> TRAVEL_DAY = new HashMap();
    // 人均花费
    public static final Map<Integer,TravelCondition> AVG_EXPEND = new HashMap<>();
    // 数据的初始化
    static {
        TRAVEL_DAY.put(1,new TravelCondition(0,3));
        TRAVEL_DAY.put(2,new TravelCondition(4,7));
        TRAVEL_DAY.put(3,new TravelCondition(8,14));
        TRAVEL_DAY.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        AVG_EXPEND.put(1,new TravelCondition(1,999));
        AVG_EXPEND.put(2,new TravelCondition(1000,6000));
        AVG_EXPEND.put(3,new TravelCondition(6001,20000));
        AVG_EXPEND.put(4,new TravelCondition(20001,Integer.MAX_VALUE));
    }

    private int min;
    private int max;

    public TravelCondition(int min, int max){
        this.min = min;
        this.max = max;
    }
}
